package com.fire.communication.web.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fire.communication.model.DeviceAlarmLog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DeviceAlarmLogMapper extends BaseMapper<DeviceAlarmLog> {

    void updateByNumber(JSONObject jsonParam);

    void updateByLogId(JSONObject jsonParam);

    List<Map<String,Object>> getCountByAlarmType(JSONObject jsonParam);

    List<Map<String,Object>> getWeekAlarm(JSONObject jsonParam);

    List<DeviceAlarmLog> getRealTimeAlarmList(JSONObject jsonParam);

    List<Map<String,Object>> getDeviceCountByCurrentstate(JSONObject jsonParam);

    List<Map<String,Object>> getAlarmBusinessAnalysis(JSONObject jsonParam);
}
	